package com.test.classloader;

/**
 * Created by jl on 2016/5/27.
 */
public class Demo {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        MyClassLoader loader1 = new MyClassLoader("loader1");
        Class clazz = loader1.loadClass("com.test.classloader.Sample");
        Object o = clazz.newInstance();
    }
}
